﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using Software41.Tracking.Model;

namespace Software41.Tracking.Data.EF
{
    public class StepInfoMapping : EntityTypeConfiguration<StepInfo>
    {
        public StepInfoMapping()
        {
            ToTable("bam_ProcessDiagnostics_ViewStepInfo_View");
            HasKey(p => p.ActivityID);
            Property(p => p.Duration).HasColumnName("StepDuration");
            Property(p => p.SuccessInternal).HasColumnName("Success");
            Ignore(p => p.Success);
            Ignore(p => p.ActionInfos);
            Ignore(p => p.LogDetails);
            Ignore(p => p.ExceptionDetail);
            Ignore(p => p.ReferenceData);
        }
    }
}
